How to generate powerful tags for your content - SEO
One of the biggest task while writing article or blog is to have right set of…
November 24, 2017
Each jar file has a manifest file in META_INF/MANIFEST.MF
I have to read each MANIFEST.MF file and get some information from it. So, instead of extracting whole jar, one by one is a tedius thing.
Following command can be used to unzip a complete jar file:
unzip <path of jar file>
If you want to unzip files to a particular folder
unzip <path of jar file> -d <path of target folder>
Note: if the target folder does not exists, it will be created
If you want to unzip only particular files
unzip <path of jar file> <path of file inside jar file>
If you want to unzip only particular files in a particular folder
unzip <path of jar file> <path of file inside jar file> -d <target folder>
That is all. Combine these, and you are done.
Shell script I used to solve this
for myfile in `ls /Users/labuser/jars` ; do unzip ../$myfile META-INF/MANIFEST.MF -d $myfile; done
One of the biggest task while writing article or blog is to have right set of…
This is due to our web server are configured to deny accessing this directory…
Introduction In our previous post, where we saw How to configure comments module…
Assuming your web application is using oracle, and you are deploying your app on…
While writing JUnit test cases, we encounter cases like we want to initialize a…
Introduction In this post, we will talk about basic of how to create components…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…